package org.NooLab.structures.randomgraph;

import java.util.ArrayList;


/**
 * particularly used by higher levels of textual entities, such as sentences, paragraphs, or free snippets
 * 
 * 
 *
 */
public class RichEntityPositions {
	
	
	ArrayList<RichEntityPosition>  items = new ArrayList<RichEntityPosition>() ;
	
	
	// ------------------------------------------------------------------------
	public RichEntityPositions(){
		
	}
	// ------------------------------------------------------------------------

	public void clear() {
		items.clear();
		
	}
	
	public ArrayList<RichEntityPosition> getItems(){
		return items;
	}
	
	public RichEntityPosition getItem( int index){
		RichEntityPosition item=null;
		if ((index>=0) && (index<items.size())){
			item = items.get(index);
		}
		return item;
	}

	public int size() {
		return items.size();
	}

	public void add(RichEntityPosition sp) {

		items.add(sp);
	}
	
}
